package cn.lanqiao.service.impl;


import cn.lanqiao.entity.Course;
import cn.lanqiao.service.CourseService;

public class CourseServiceImpl implements CourseService {
 private cn.lanqiao.dao.CourseDao dao=new cn.lanqiao.dao.impl.CourseDaoImpl();

@Override
public Object[][] list() {
	return dao.getAllCourse();
}

@Override
public void deleteCourseByid(String id) {
	dao.deleteCourseByid(id);
	
}



@Override
public void update(String id, Course course) {
	dao.updateCourse(id, course);
}

@Override
public int addCourse(Course course) {
	
	return dao.addCourse(course);
}
}
